package mock.servicesdirectory.organisations.business.businessimpl;

import java.util.List;

import mock.servicesdirectory.common.entities.Organisation;
import mock.servicesdirectory.organisations.business.businessinterface.OrganisationBO;
import mock.servicesdirectory.organisations.dao.daointerface.OrganisationDAO;

/**
 * 
 * @author vietnk
 *
 */
public class OrganisationBOImpl implements OrganisationBO{
	
	private OrganisationDAO organisationDAO;
	
	public OrganisationDAO getOrganisationDAO() {
		return organisationDAO;
	}

	public void setOrganisationDAO(OrganisationDAO organisationDAO) {
		this.organisationDAO = organisationDAO;
	}

	@Override
	public List<Organisation> getOrganisation() {
		// TODO Auto-generated method stub
		// Get Organisation call getOrganisation from DAO to get all Organisation in the database
		return organisationDAO.getOrganisation();
		
	}

	@Override
	// Get Organisation is active
	public List<Organisation> getOrganisation(boolean active) {
		// TODO Auto-generated method stub
		// Get Organisation call getOrganisation from DAO to get all active Organisation in the database
		
		return null;
	}
	
	// Method to get all organisation where name depends flag
	@Override
	public List<Organisation> getOrganisation(int flag) {
		// TODO Auto-generated method stub
		// Get Organisation call getOrganisation from DAO to get adaptive Organisation in the database 
		// Method to get all organisation where name start with a flag
		/*
		 * flag = 1 . Name start with a digit 0-9
		 * flag = 2 . Name start with A, B, C, D ,E
		 * flag = 3 . Name start with F, G, H, I, J
		 * flag = 4 . Name start with K, L, M, N
		 * flag = 5 . Name start with 0, P, Q , R
		 * flag = 6 . Name start with S, T, U , V
		 * flag = 7 . Name start with W, Y, Z
		 */
		return null;
	}

	
}
